﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Problem1
{
    abstract class AbstractCar 
    {
        protected String culoare;

        public String Culoare
        {
            get { return culoare; }
            set { culoare = value; }
        }
      
        protected String transmisie;

        public String Transmisie
        {
            get { return transmisie; }
            set { transmisie = value; }
        }

        public AbstractCar(String culoare , String transmisie)
        {
            this.culoare = culoare;
           
            this.transmisie = transmisie;

        }

        public override bool Equals(object obj)
        {

            if (obj == null)
                return false;
            AbstractCar car = obj as AbstractCar;
            if (car == null)
                return false;
            if (car.ToString().Equals(this.ToString()))
                return true;
            return false; 
        }

    }
}
